package com.telit.firecommand.controller;//package com.telit.firecommand.controller;
//
//import com.telit.entity.CommSatelliteInfo;
//import com.telit.entity.DataReturn;
//import com.telit.service.CommSatelliteInfoService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.MediaType;
//import org.springframework.web.bind.annotation.*;
//
///**
// * 卫星遥感设备
// *
// * @author baoyangyang
// * @date 2022-09-05
// */
//@Slf4j
//@RestController
//@RequestMapping(value = "/comm_satellite", produces = MediaType.APPLICATION_JSON_VALUE)
//@Api(tags = "卫星遥感设备", description = "/comm_satellite")
//public class CommSatelliteInfoController {
//
//    @Autowired
//    private CommSatelliteInfoService commSatelliteInfoService;
//
//    @PostMapping(value="/add",produces = "application/json;charset=UTF-8")
//    @ApiOperation("新增卫星遥感设备")
//    public DataReturn add(@RequestBody CommSatelliteInfo commSatelliteInfo) {
//        commSatelliteInfoService.add(commSatelliteInfo);
//        return DataReturn.ok();
//    }
//
//    @GetMapping("/delete/{id}")
//    @ApiOperation(value = "根据ID删除卫星遥感设备")
//    public DataReturn delete(@PathVariable("id") Integer id){
//        commSatelliteInfoService.deleteById(id);
//        return DataReturn.ok();
//    }
//
//    @PostMapping(value="/update",produces = "application/json;charset=UTF-8")
//    @ApiOperation("修改卫星遥感设备")
//    public DataReturn update(@RequestBody CommSatelliteInfo commSatelliteInfo) {
//        commSatelliteInfoService.update(commSatelliteInfo);
//        return DataReturn.ok();
//    }
//
//    @GetMapping(value="/list")
//    @ApiOperation("分页查询防火装备信息")
//    public DataReturn queryPageByCondition(@RequestParam(required = false) Integer page,
//                                              @RequestParam(required = false) Integer rows){
//        Object object = commSatelliteInfoService.queryPageByCondition(page, rows);
//        return DataReturn.ok(object);
//    }
//
//    @GetMapping("/queryDetailById/{id}")
//    @ApiOperation(value = "根据ID查询卫星遥感设备")
//    public DataReturn queryDetailById(@PathVariable("id") Integer id) {
//        CommSatelliteInfo commSatelliteInfo = commSatelliteInfoService.selectByPrimaryKey(id);
//        if (commSatelliteInfo!=null){
//            return DataReturn.ok(commSatelliteInfo);
//        }else{
//            return DataReturn.ok();
//        }
//    }
//
//}
